package com.bm.api.controller;

import com.bm.api.service.UserInfoService;
import com.bm.common.vo.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/userinfo/")
@Api(tags = "查询用户信息界面-王文浩")
public class UserInfoController {
    @Resource
    private UserInfoService service;
    @ApiOperation(value = "通过id查询用户信息")
    @GetMapping("/all.do")
    public R all(@RequestParam int uid){
        return service.all(uid);
    }
}
